package com.itqdkj.health.dao;

import com.itqdkj.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingDao {
    /**
     * 查询特定一天的预约数据
     * @param orderDate
     * @return
     */
    long findCountByOrderDate(Date orderDate);

    /**
     * 更新数据
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 新增数据
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    /**
     * 查询设置表的所有数据
     * @param dateBegin
     * @param dateEnd
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(@Param("begin") String dateBegin,@Param("end") String dateEnd);

    OrderSetting findOrderSettingByOrderDate(Date date);

    void updateReservationsByOrderDate(OrderSetting orderSetting);
}
